package com.cnware.common.util;

import java.io.File;

public class FolderUtil {

	public static boolean checkFolder(String path,boolean isCreate){
		File spaceFolder = new File(path);
		if(!spaceFolder.exists() || !spaceFolder.isDirectory()){
			if(isCreate){
				spaceFolder.mkdir();
				return true;
			}
			return false;
		}
		return true;
	}
}
